(defproject cljsso "0.1.0-SNAPSHOT"
  :description "A very simple SSO server written in Clojure"
  :url "http://git.oschina.net/chencassc/cljsso"
  :min-lein-version "2.0.0"
  :dependencies [[org.clojure/clojure "1.6.0"]

                 [compojure "1.3.1"]
                 [http-kit "2.1.18"]
                 [com.postspectacular/rotor "0.1.0"]
                 [lib-noir "0.9.5"]
                 [selmer "0.7.7"]

                 [clj-time "0.8.0"]

                 [org.clojure/java.jdbc "0.3.5"]  ; jdbc
                 [mysql/mysql-connector-java "5.1.34"]

                 [com.taoensso/carmine "2.9.0"]

                 [com.zaxxer/HikariCP-java6 "2.2.5"]

                 [org.clojure/data.json "0.2.5"]
                 [sparrows "0.1.3" :exclusions [org.clojure/tools.reader]]
                 [com.taoensso/timbre "3.3.1" :exclusions [org.clojure/tools.reader]]

                 [ring-server "0.3.1"]
                 [org.clojure/core.memoize "0.5.6"]
                 [org.slf4j/slf4j-jdk14 "1.7.10"]

                 ;; live debugging, remove if not required
                 [org.clojure/tools.nrepl "0.2.7"]
                 [ring-basic-authentication "1.0.1"]
                 ]
  :plugins [[lein-ring "0.8.13" :exclusions [org.clojure/clojure]]]
  :jvm-opts ["-Duser.timezone=GMT+8"]
  :uberjar-name "cljsso-standalone.jar"
  :main cljsso.core
  :ring {:handler cljsso.core/app :init cljsso.core/init}
  :profiles
  {:uberjar {:aot [cljsso.core]}
   :dev {:dependencies [[javax.servlet/servlet-api "2.5"]
                        [ring-mock "0.1.5"]]
         :ring
         {:open-browser? false, :auto-reload? true, :port 3000 :auto-refresh? true}}})
